package com.kuaishou.locallife.open.api.request.locallife_goods;

import java.util.HashMap;
import java.util.Map;
import java.util.List;
import com.kuaishou.locallife.open.api.AbstractKsLocalLifeRequest;
import com.kuaishou.locallife.open.api.common.HttpRequestMethod;
import com.kuaishou.locallife.open.api.common.utils.GsonUtils;
import com.kuaishou.locallife.open.api.response.locallife_goods.GoodlifeCategoryRateinfoBatchQueryResponse;

/**
 * auto generate code
 */
public class GoodlifeCategoryRateinfoBatchQueryRequest extends AbstractKsLocalLifeRequest<GoodlifeCategoryRateinfoBatchQueryResponse> {

    private List<Long> category_id;

    public List<Long> getCategory_id() {
        return category_id;
    }

    public void setCategory_id(List<Long> category_id) {
        this.category_id = category_id;
    }

    /**
     * 用于GET请求
     */
    @Override
    public Map<String, String> getBusinessParams() {
        Map<String, String> bizParams = new HashMap<String, String>();
        return bizParams;
    }

    /**
     * 生成请求Json串,用于post请求
     */
    @Override
    public String generateObjJson() {
        return GsonUtils.toJSON(this);
    }

    public static class ParamDTO {
        private List<Long> category_id;

        public List<Long> getCategory_id() {
            return category_id;
        }

        public void setCategory_id(List<Long> category_id) {
            this.category_id = category_id;
        }

    }

    @Override
    public String getApiMethodName() {
        return "goodlife.category.rateinfo.batch.query";
    }

    @Override
    public Class<GoodlifeCategoryRateinfoBatchQueryResponse> getResponseClass() {
        return GoodlifeCategoryRateinfoBatchQueryResponse.class;
    }

    @Override
    public HttpRequestMethod getHttpRequestMethod() {
        return HttpRequestMethod.POST;
    }

    @Override
    public String getRequestSpecialPath() {
        return "/goodlife/category/rateinfo/batch/query";
    }
}
